// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import './css/comm.css'
import Vue from 'vue'
import loading from './plugins/loading/index'
import pages from './plugins/pages/index'
import App from './App'
import router from './router'
import Vuex from 'vuex'
import './js/rem'
Vue.config.productionTip = false
import 'babel-polyfill'
/* eslint-disable no-new */
Vue.use(loading,{})
Vue.use(pages)
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
router.beforeEach((to, from, next) => {
  // ...
  next();
});